from tornado import web, gen, ioloop

from action.indexBaseHttp import baseHttp
##SEO优化
from logic import articleDao
from utils.MyUrl import MyUrl

class site(baseHttp):
    loop = ioloop.asyncio.get_event_loop()

    @gen.coroutine
    def get(self):
        artall =yield from self.loop.run_in_executor(None,articleDao.articleDao().listAllNoPage)
        self.render("index/site",artall=artall,link=MyUrl)
